import type { RegisterUser } from "@/pages/Register";
import http from "@/utils/request";

export async function registerCaptcha(email: string) {
    return await http("/user/register-captcha", 'get', {
        address: email
    })
}

export async function register(registerUser: RegisterUser) {
    return await http("user/register", "post", registerUser);
}